-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restyle flatpage #1078
Restyle flatpage #1078
Conversation
dtrucs
commented
Apr 2, 2024
- New style for flatPage
- Add suggestions from GTA's WYSIWYG
Co-authored-by: mab <[email protected]>
const suggestions = getSuggestionsFromContent(flatPage?.content ?? ''); | ||
|
||
const activitySuggestionIds = suggestions.flatMap(suggestion => | ||
'ids' in suggestion ? suggestion.ids : [suggestion.type], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'ids' in suggestion ? suggestion.ids : [suggestion.type], | |
suggestion.ids ?? [suggestion.type], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My code is a bit tricky because I have a little problem with the suggestion
type, which thinks ids
doesn't exist, but it does. 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for the suggestion 🙏